import config from '../../utils/config';
import apiCreator from '../../utils/apiCreator';

const api = apiCreator();

export default {
  //获取持仓
  getPosition: (query) => api.get(`${config.interfaces.type1}deposit/queryDeposit`, query),
  //获取资产拆分 持仓
  getPositionTrade: (query) => api.get(`${config.interfaces.type1}assetSplitHoldInfo/ck`, query),
  //总行列表
  getHeadBankList: (query) => api.get(`${config.interfaces.type5}portfolio-server/bankAccount/getDepositheadoffice`, query),
  //分行列表
  getBranchBankList: (query) => api.get(`${config.interfaces.type5}portfolio-server/bankAccount/getDepositbranch`, query),
  //簿记修改新增
  tradeBookSave: (query) => api.post(`${config.interfaces.type1}deposit/save2`, query),
  //指令下达或新增
  orderSave: (query) => api.post(`${config.interfaces.type1}deposit/save`, query),
  //获取存款利率
  getRate: (query) => api.get(`${config.interfaces.type5}portfolio-server/bankAccount/getRATE`, query),
  //获取存款分行
  getAccountInfo: (query) => api.get(`${config.interfaces.type5}portfolio-server/bankAccount/getAccountInfo`, query),
  //交易录入
  tradeAdd: (query) => api.post(`${config.interfaces.type1}deposit/save3`, query),
};
